home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
More Examples
/
Overlap&Tempo Demo
< prev
next >
Wrap
Text File
|
1998-10-26
|
1KB
|
49 lines
; Here is a demo that shows how the effect of overlapping durations
(def-symbol
piano1 '(a b c d e f g h i j k l m n)
piano2 (reverse (symbol-of piano1))
)
(def-length
piano1 '((1/16) (1/8t))
piano2 '((1/16) (1/8t))
)
(def-duration
piano1 '(1/2 1/4 1/8)
piano2 '(1/4 1/8 1/2)
)
(def-tonality
piano1 (activate-tonality (pentamajor c 4) (pentamajor d# 4))
piano2 (activate-tonality (pentamajor c 5) (pentamajor d# 5))
)
(def-zone
piano1 '(2/1 2/1 1/1 1/1)
piano2 '(2/1 2/1 1/1 1/1)
)
(def-channel
piano1 1
piano2 2
)
; Global tempo can now be given this way. This sets the MIDI file
; tempo. If you extend it and define individual tempo patterns for
; each instrument, then the tempos will be calculated internally
; by SCOM. If you extend it with default definition, then this
; pattern determines the MIDI tempo events according to def-zone
; tempo definition.
(def-tempo 120)
(midiport :printer)
(compile-instrument-p "ccl;output:" "overlaps"
piano1
piano2
)